package com.sixth.service;

import com.sixth.util.CommonResult;
import com.sixth.util.TableLayUi;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    //登录
    CommonResult findByLoginnameAndPwd(String loginname, String pwd, HttpServletRequest request );

    //查询
    TableLayUi listByCondition(int page, int limit, String realname, String loginname, String address, String phone,String identity, Integer sex);

    //添加用户
    CommonResult AddUser(String loginname,String identity, String realname, Integer sex, String address, String phone,String pwd,String position,Integer type);

    //修改用户信息
    CommonResult editUser(Integer userid, String loginname, String identity, String realname, Integer sex, String address, String phone, Integer type);

    //修改密码
    CommonResult updatePassword(Integer userid, String pwd);

    //删除用户
    CommonResult deleteUser(Integer userid);

    //批量删除
    CommonResult batch(String user);
}
